package com.multimedia.scala.sudoku
import scala.collection.mutable.LinkedList

object Field {

	def possibleNumbers(data: List[List[Int]], row: Int, col: Int): scala.collection.mutable.Set[Int] = {
	    //println("possible numbers:["+row+"] ["+col+"]")
	    var res = scala.collection.mutable.Set(1, 2, 3, 4, 5, 6, 7, 8, 9)
	    Checker.scanRow(data, row, res)
	    Checker.scanCol(data, col, res)
	    Checker.scanBlock(data, row, col, res)
	    //println ("possible numbers:"+res)
		return res
	}

}